/**
 * Copyright (c) 2005 - 2007 FeyaSoft Corp. All Rights Reserved.
 */
package com.feyaSoft.home.web.main;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.web.servlet.ModelAndView;

import com.feyaSoft.home.web.base.BaseController;

/**
 * @author Fenqiang Zhuang
 * @Oct 1, 2007
 * 
 * This file is used to .....
 */
public class HomeController extends BaseController {
	// log file
	private final static Logger log = Logger.getLogger(HomeController.class);

	public ModelAndView init(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		// start to write something to the log
		log.info("Someone come from ip address <"
				+ request.getRemoteAddr() + ">");
		
		return new ModelAndView("home");
	}
}
